﻿using System.Collections.Generic;

namespace Interactive.Utility.Collections {
  
	/// <summary>
	/// 缓存未命中时的回调
	/// </summary>
	/// <param name="key">未命中的键</param>
	public delegate V CacheItemMissedCallback<K, V> (K key);

	/// <summary>
	/// 缓存项批量回收时的回调
	/// </summary>
	/// <param name="removedItems">被回收的项</param>
	public delegate void CacheItemsRecycledCallback<K, V> (IList<KeyValuePair<K, V>> removedItems);
}